<template>
  <nav class="navbar-wrapper">
    <div class="left">
      <slot name="left" />
    </div>
    <Breadcrumb />
    <div class="right">
      <el-dropdown>
        <el-icon style="margin-right: 8px; margin-top: 1px"><i-ep-setting /></el-icon>
        <template #dropdown>
          <el-dropdown-menu>
            <el-dropdown-item>View</el-dropdown-item>
            <el-dropdown-item>Add</el-dropdown-item>
            <el-dropdown-item>Delete</el-dropdown-item>
          </el-dropdown-menu>
        </template>
      </el-dropdown>
      <span>Tom</span>
    </div>
  </nav>
</template>

<script setup lang="ts">
defineComponent({ name: 'Navbar' });
</script>

<style lang="scss" scoped>
.navbar-wrapper {
  height: var(--yy-navbar-height);
  display: flex;
  /*左右居中*/
  justify-content: center;
  /*上下居中*/
  align-items: center;

  .left {
    margin: auto 10px;
  }

  .right {
    margin-left: auto;
    margin-right: 10px;
  }
}
</style>
